These are considered affirmative responses that convey understanding or agreement.
Here are some other ways to spell it:
* Mmhm
* Uh-hum
* Mmm
* Yeah (informal)
* Yup (informal)
The best way to spell it depends on the context and your personal preference.