trim input, don't allow empty title