support setting mode strs to empty string