Make std.string.chomp pure