[KARAF-2980]strip off tabs/spaces around role|group names
(cherry picked from commit a27ef6cd32d84a999bbe601b835192fde4516dca)