diff --git a/src/Stringy.php b/src/Stringy.php index 9f887b8..376d78a 100644 --- a/src/Stringy.php +++ b/src/Stringy.php @@ -365,8 +365,7 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess */ public function humanize() { - $str = str_replace('_id', '', $this->str); - $str = str_replace('_', ' ', $str); + $str = str_replace(array('_id', '_'), array('', ' '), $this->str); return self::create($str, $this->encoding)->trim()->upperCaseFirst(); }