Added validation of strings