Edit: Unless there was a specific reason to test `'f'` before `'0'`? Should be equivalent.