Changed new method signature to use CharSequence instead of String