Remove trailing space and ensure 4 space indent