Remove end-of-line whitespace, change an int i to size_t i