method overwrite validateString()