remove debug and spaces