pkg: Add String#toLongOpt ext method.