Fix foregoing characters in strings with xml strings and arrays