lookup an OSString that the given str is satsified the matching condition.
str
OSString? lookupByString(String str) { return where((osstr) => osstr <= str).singleOrNull; }