結果 : write a java program to trim a given string and remove leading and trailing spaces