Refine the regexp used in Term#initialize (still have errors)