def cstmString(self, emptyword): if self == []: return emptyword return string.replace(UserList.__str__(self)[1:-1], '\'', '')