Consolidate string tests into their own class
String: fix types on Python 2