added utility function for strings
changed interface for string comparison
test cases and str functions