Fixes leading spaces in titles
Fixes warnings in the markov module