As noted in our IRC conversation yesterday, I'd argue that if `$value` is an integer, you should do a `return (string) $value;`, and skip the regex. Integers are always series of digits; the main thing is ensuring that a string value is returned in that case, so that subsequent filters can operate on it.