made function to check for concatenations in phrases