longparas: safe STRING_NOTFOUND -> -1

Change-Id: Ib8e2dea41293822cb49ebfc7b398acc20b6c37be
longparas: these USHRT_MAX are really STRING_LEN

Change-Id: I5b55204c262e9fd0c14a9562351a9a1f8b080cec