BOOTIL_EXPORT void TrimLeft( BString& str, const BString& strChars ) { str.erase( 0, str.find_first_not_of( strChars ) ); }
BOOTIL_EXPORT void TrimRight( BString& str, const BString& strChars ) { str.erase( str.find_last_not_of( strChars )+1 ); }