crm-12976-fix : using 'strtr' while placeholder replacement mechanism

CRM-12976 : after the discussion on issue 'strtr' and also a test case that denotes where the 'strstr' could fail.