What happens if the VALUE_DELIMITER is not found? This will cause valuePos = lastParamIndex - 1, please make sure this is ok.