Replace subject names with numbers