All the instances are converted as follows. - nsSubstring --> nsAString - nsCSubstring --> nsACString