Use regexp instead of substrings to make it work with services files
that contain a mix of tabs and spaces.