str_replace breaks full path if From language abbreviation is found mid-word

Fixed issue when the $from language is incorrectly found and replaced in the full path, e.g. for "en" to "sp", "en" is found in "../Development/.." and changed to "../Developmspt/.."