Correct indexes to ignore whitespace