joining locPrefs on substring