New spell check code for hacker rank format and contest