Fixed #53

change algorithm of parsing title