cleanup useless spaces from rail generator