Take out newline characters from character count in editor