Replaced a strcmp with a integer comparison