normalize-space used in xpath shouldn't fail on spaces after https://github.com/SeleniumHQ/selenium/commit/ff76fea46c10afc33e225c5c4af5a0fd7dc1c248. So, there is no need to manually check this, isn't it?