setMode as Substring() to support fuzzy match and fix TIVI-335 and TIVI-766