Remove to_b and switch to checking on the string