SamFlag - add isSecondary check; StringBasics, return false if the string is empty.