got the idea of closures to work.
Using shortcodes instead of string searching.