Fix wrong use of capture to introduce unexpected white spaces