Correct typos.
Move utils function to a new utils chapters.