Change * to [] in argument list of printTitle() function