iNotes Redirect Code

I am trying to modify the original code in the iwaredir.nsf form AutoLogin to redirect my iNotes users. The original code is ServerNameChange=“2”;@If(RevProxyServerName=“”;wmrhttps+“://”+wmrHTTPHostName+wmrFinalPort;RevProxyServerName+“/”+wmrFQDNHost);

I am trying to modify it to

ServerNameChange=“2”;@If(RevProxyServerName=””;wmrhttps+://"+@ReplaceSubstring(wmrHTTPHostName;“Alpha”:“Beta”)+wmrFinalPort;RevProxyServerName+”/” +wmrFQDNHost);

I get an error when trying to save this that says

an operator or semicolon was expected but none was encountered:‘Alpha’

Can anyone tell me what I am missing here?

Thanks in advance

Subject: : instead of ; maybe

@ReplaceSubstring(wmrHTTPHostName;“Alpha”:“Beta”)