- 'version' => str_replace("\n", '', $response[0]),
- 'changed' => str_replace("\n", '', $response[1]),
- 'revision' => str_replace("\n", '', $response[2]),
+ 'version' => trim(str_replace("\n", '', $response[0])),
+ 'changed' => trim(str_replace("\n", '', $response[1])),
+ 'revision' => trim(str_replace("\n", '', $response[2])),