added support for CharSequences