change to `else if` here and for `string`