Fixed an incorrect stripping of a string as well as made the string cleaning methods work on a copy of self.