src/Manipulator.php
public function eachCharacter(\Closure $closure) : Manipulator
    {
        $modifiedString = '';

        foreach (str_split($this->string) as $character) {
            $modifiedString .= $closure($character);
        }

        return new static($modifiedString);
    }
public function eachCharacter(\Closure $closure) : Manipulator
    {
        $modifiedString = '';

        foreach (str_split($this->string) as $character) {
            $modifiedString .= $closure($character);
        }

        return new static($modifiedString);
    }
public function eachCharacter ( \ Closure $ closure ) : Manipulator { $ modifiedString = '' ; foreach ( str_split ( $ this -> string ) as $ character ) { $ modifiedString .= $ closure ( $ character ) ; } return new static ( $ modifiedString ) ; }
Perform an action on each character in the string.

@param $closure
@return object|Manipulator
Perform an action on each character in the string .