The storyyas + -'m, a contraction of ma'am (itself a contraction of madam).Etymology from Wiktionary, CC BY-SA 4.0.