remove spaces from print functions