Change lines to strings