fixed syntax
added string validation