updated string-tools.php logic