modified wordspace getindex to use const word