added c string style to compare function