remove gabage text from file