Faster string comparison

- Replace string compare method usage with faster equals alternative.