Fixed typos

Replaced String values in the map with integers; also `Map` doesnt have a `set` method, it should be `put`