tool-bar: avoid adding spaces at end
fixed recognition of flexible spaces