Attributeerror Str Object Has No Attribute Sort