This is not logic specific to MODULE. Breaking it out to kicad_string.h acheives: * Slimming of the MODULE interface * Enables reuse of the function * Enables testing of the function Also add a test under qa_common for this function.