added read from file and space/new line can be space now