How would I make a bot space insensitive in Discord.py?

I am making an STFU bot to make people shut up about when did I ask and stuff and I’m wondering how I would make it so my bot will ignore white space when someone sends the keyword. Here is my code:

@client.event
async def on_message(message):
  if (message.author.bot):
    return
  if 'did i ask' in message.content.lower():
        await message.channel.send('{} Shut up, the world doesnt revolve around you.'.format(message.author.mention))
  if 'who asked' in message.content.lower():
    await message.channel.send('{} Shut up, the world doesnt revolve around you.'.format(message.author.mention))
  if 'stfu' in message.content.lower():
    await message.channel.send('Was I summoned?')

Answer

You can strip the string of all its spaces and compare it to a string with no spaces either:

@client.event
async def on_message(message):
  if (message.author.bot):
    return
  if 'didiask' in (message.content.lower()).replace(" ", ""):
        await message.channel.send('{} Shut up, the world doesnt revolve around you.'.format(message.author.mention))
  if 'whoasked' in (message.content.lower()).replace(" ", ""):
    await message.channel.send('{} Shut up, the world doesnt revolve around you.'.format(message.author.mention))
  if 'stfu' in message.content.lower():
    await message.channel.send('Was I summoned?')