fix the usage of deprecated methods.
Merge pull request #1615 from abersnaze/migrate-rx-string

fix the usage of deprecated methods.