Trim newlines and whitespace from pasted FEN strings