handling spaces