Replace Variant string functions with '$' functions if using strings

As discussed in tip #21, this is probably not an area worth spending a lot of time on until all other data related optimizations have been explored.