Trim text to prevent additional trailing or leading whitespaces
Show alert if no text has been entered