java string trim not removing whitespace