[MLPL][StringUtils] Add a broundary check.