BOM - Validation Function

BOM - Validation Function

How can I use the Validation Function to make a validation of a string value?