Create string replace functionality

This functionality should solve issue #18.

It's inspired by PHP's [str_replace](http://php.net/manual/en/function.str-replace.php) function.