resolve white spaces