Switch to native functions for string rewriting