Macro to Function Issue

Hey guys!

I have recently needed to convert a macro into a function to save nodes in a rather large blueprint I have. The blueprint is basically a text editor for 3D letters. The problem I am having is that all the math seems to work very differently in a function than it did in a macro. Anyone else have that experience?

Here is the Macro math.

Here is the Function math.(Identical)

Here is the results.

Both are supposed to say ‘ABC’

Any and all ideas are welcomed.