Added test code for supporting more than 1 word