diff --git a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs index 26780259..c9642537 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs @@ -960,14 +960,17 @@ namespace VEPROMS.CSLA.Library if( str == null || str == "" ) return str; string rtnstr = str; int indx = -1; - while ((indx = rtnstr.ToUpper().IndexOf("@HSP("))>-1) + while ((indx = rtnstr.ToUpper().IndexOf("@HSP(")) > -1) { - string resstr = rtnstr.Substring(0,indx); - int endHsp = rtnstr.IndexOf(")",indx); - string tmpstr = rtnstr.Substring(indx+5,endHsp-indx-5); - tmpstr = tmpstr.Replace(" ", @"\u160?"); + string resstr = rtnstr.Substring(0, indx); + int endHsp = rtnstr.IndexOf(")", indx); + string tmpstr = rtnstr.Substring(indx + 5, endHsp - indx - 5); + if (!tmpstr.Contains("<