Enhance regex in 'check_atom'