fix pattern for white spaces