Added validation for characters between words