Text Editor blank space before text is trimmed