added regular expressions for string comparison