update String#gsub test

refs #847