fix popovers in bootstrap and string::trim