added string validation