Validates if a value is a string.