w2utils.w2marker(): make sure that tmp is a string before applying regex

threw TypeErrors before when calling with numerical values.