fix `can't convert Fixnum into String`
add tests for replace filter
Merge pull request #173 from jsw0528/master

fix `can't convert Fixnum into String` for `replace`