1. refactor code to handle whitespaces and invisible characters in style selectors