scripts: kconfig: Add substring function Adds a substring function Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>