regex fix to allow spaces, min-width fix, line-height hack