Update StringUtils.php

Make code stronger by forcing cast of parameters as string in any cases.