Removing  IndexOutOfBounds exception when using one-letter XML tags

Closes #256