Update index, unnecessary blank spaces removed