单项选择题

在标准String类的方法中,能去除某字符串中的首、尾空格的方法是()。

A.trim()
B.replace()
C.regionMatches()
D.replaceAll()