I think i figured out the problem. There seems to be an invisible character at the end of the variable.
I assume once i figure out what it is, i may be able to resolve the problem.