Trim incoming PID values