trim() always removes the line separator in the end of the String