PPC optimized string function.