BOM/Values&Validation: Validation Function

BOM/Values&Validation: Validation Function

How the Validation Function works in String attributes?