Dry and wet strength of paper