Move ltrim into else branch.