The correct spelling for "ma'm" is "ma'am". It is a contraction of "madam" used as a respectful way to address a woman. To avoid misspelling, one can capitalize the "M" and use an apostrophe to replace the missing "d".