calling trim() twice on the same string?