Added funtion for checking if a string contains one word only