handle empty text