check string amalgum instead of no of words