Made delimits more readable
Stored value of curWord in prevWord before clearing curWord