Added method to get joint type as string