remove spaces in P/T