I have a string
string str =\"Enter {0} patient name\";
I am using string.format to format it.
String.Format(str, \"Hello\
You are probably better off using Replace for the custom field and Format for the rest, like:
string str = "Enter {0} {pat} name"; String.Format(str.Replace("{pat}", "Patient"), "Hello");