addValidationSuffix function

Appends a validation suffix to a string.