This line becomes to long and complex... Maybe use a `StringBuilder`?
And supernit: there is a case when `reason` will be started with a space.