removes trailing space, allows test to pass, fixes indentation