Change string comparision to use the function.