Only replaceSlashes/replaceBackSlashes for strings
Caused an error on Windows when 'order' contained a RegEx