a function to read size from string with K,M,G.