Fixed contracts in common safe. Added contracts for strings.