I know there are some questions concerning this topic, but I would like to know how one should approach this problem without the use of regex?
Regex solutions are als