Fixed array to string conversion problem