fix scanf that can scan space