Use only one function for 2 and 3 locale search