added  substring comparison function, not yet tested