Operator overloading for strings and lists