use StringTypes instead of str when determining the type