     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

      else
        for tid in data.tidbits
          @tidbits.push tid
    tidbit: () ->
      @tidbits[Math.floor(Math.random() * @tidbits.length)]
    toObj: () ->


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