Try to make string compares last option in if, change to use range based for