Hacky update to solving html element related string constraints