Thanks Mirek, I just tried that and it worked! To get around that issue, I did update my code to make use of the trim ends function that U++ has available. I do think undefining things is probably not a recommended solution, I couldn't possibly think of what else could go wrong.