LPS-38516 Fix source formatting (we need the trim because we don't want to display the nav when we have empty spaces or /n )