     msg.reply "Deleted tidbit: " + tidbit[0].verb + '|' + tidbit[0].tidbit
 
   robot.hear /^(.*)\??$/, (msg) =>
-    factoid_name = msg.match[1]
+    factoid_name = msg.match[1].trim()
     factoid = robot.factoid.get factoid_name
     return unless factoid
     robot.factoid.output msg, factoid


  robot.hear /^literal(?:\[([*\d]+)\])?\s+(.*)$/, (msg) =>
    page = msg.match[1]
    factoid_name = msg.match[2]
    factoid = robot.factoid.get factoid_name
    if !factoid
      msg.reply "No such factoid"

    msg.reply "FIXME - not implemented yet"

  robot.hear /^forget (.*)#(\d+)$/, (msg) =>
    factoid_name = msg.match[1].trim()
    tid = parseInt(msg.match[2], 10)-1
    factoid = robot.factoid.get factoid_name
    if !factoid
      msg.reply "No such factoid"
      return
    if !factoid.can_edit msg.message.user
      msg.reply "Sorry, you don't have permissions to edit '"+factoid.name+"'."
      return
    if tid < 0
      msg.reply "Sorry, you must provide a number greater than 0 (as this is 1 based)"
