Added support for multiple spaces in a row
also added button height fix for standard buttons without a caption