added stripspace function