align text at index