for environment without mruby-string-ext.