Adding threading of White Spaces into final Doc