remove the leading and trailing space before and after the arguments to the method