How to remove newlines from beginning and end of a string? How to remove newlines from beginning and end of a string? java java