Fixed string conversion for error message on duplicates check.