Use scanner, get rid of extra newlines