replaceAll changed to trim