Fix syntax of converting array to string