turn string into integer for a proper comparision