Fix some minor bugs

An import line ends with a period and either a space or an end of line, not a space and then an end of line.