Adding more elegant version check

Removed other calls and used string as array of chars