Add getters for wordIndex and characterIndex