Optimize by not using regular ekspression for simple string comparison.