implement cons on strings