Created Method to test for 1st word and the remaining strings