Removes trailing space after git string