bams abms bmas mbas ambs mabs basm absm bsam sbam asbm sabm bmsa mbsa bsma sbma msba smba amsb masb asmb samb msab smab
Note: these 'words' (valid or invalid) are all the permutations of the word bams. These words are obtained by scrambling the letters in bams.