Using solution code https://github.com/jayzeng/UW-PHP-course/blob/master/lecture/lecture2/lab2_solution/Src/Util/StringUtil.php
Re-wrote tests after spec clarification