* Fix tests to allow spaces. Closes #40212 * Apply suggestions from code review Remove redundant whitespace from regex Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com> Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>