I've fixed this to raise a TypeError when non-strings are used