updated GetFindString
prevent empty macro to be recorded