Return nil if the prefix starts from the line beginning