Changed 'relaxerror' method to compare Strings to prevent failure when RegExp characters are passed in String