Added underscore string
Implemented code to check for validity of passed input word