>Thanks for this - this is certainly more space conservative than my solution which adds a new column to hold reformatted results, followed by ...
If you use a permanent index, you must make sure the UDF is "findable", or you will get error messages. I would put it into the database stored procedures for this purpose.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)