Fixes some typo on replacestr.
(Bug:8396)