Use a custom exception instead of adding a delimiter to the error message