added verifyString method