#5

Code optimization used for removing indexOf method at initialization.