Compare alphanumeric text in C language