return '' if flag is string and empty