character limit / word limit and trim() functions

added new checks for better usability to input fields