Use array join to simplify handleArithOperator