injection pattern building - whitespace matching fix