Add String::npos for better standard library compatibility.

It also aids in generic programming where the string type is
expected to have String::npos instead of String::InvalidPos.