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