Space replace needs to come before %b