We  cannot use regex because it works slower.