Try string::empty in pathname