removeing of whitespaces element in list