Fixed comparison of identical strings

This function returned -1 when comparing identical strings. Now it returns 0.