fix issue with text strings without spaces cause app to crash