Add substr and equality comparison.