Getting id from title