Found the mistake **facepalm**
I looked why the char value fed to parseInt was off for one, then I realized I put additional space in layout string. _sigh_
Found the mistake **facepalm**
I looked why the char value fed to parseInt was off for one, then I realized I put additional space in layout string. _sigh_