public function initString($contents) { $lines = explode("\n", $contents); return $this->initLines($lines); }