Regex for substitute checking, much better