Fixing text() behavior when using alternate delimiters