function skipSpace(string) {
    let toRemove = string.match(/^(?:\s|#.*)*/);
    return string.slice(toRemove[0].length);
}

function skipSpace(string) {
	let match = string.match(/^(\s+|#.*)*/);
	return string.slice(match[0].length);
}

Add chapter 12, exercise 3