parsing title into an array