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