Remove redundant to_string() and array() calls