add clear white space function