[API] Changed frequently used strings into constants

Since garbage collection is expensive in Ruby, let's freeze frequently allocated strings
and use constants instead of reallocating them all the time.

Closes #118