strip whitespaces in nav