handle empty text/incorrectly typed text in process text