More exact matching of SQL syntax.
replaced string with .ToString avoids double formatable check