Module to extract common prefixes from string
Some move of functions to modules