Added RegEx for compare tool

Added RegEx for compare tool to improve efficiency. Removed
String.Replace()