Using string_types where necessary.