How to perform spell checking in axapta

To  perform spell checking in ax write following code

  SysSpellChecker spailingch = SysSpellChecker::newLanguageId('en-us');  
   ;  
   info(strfmt('%1', spailingch.checkSpelling("Problems")));  
   info(strfmt('%1', spailingch.checkSpelling("preoblams")));