added verification for string