Format bean caption