remove white spaces from read data