Validate length of textarea converting line breaks into a character