There are conventions on how you should write compounds, and according to strict IUPAC naming, strict rules. So in your example, it should be CH3. However, sometimes when we draw a molecule, and want to show a reaction mechanism, its a little bit clearer to diagram the name a little bit differently.