extract-ghkm: allow trailing whitespace in alignment file

Thanks to Matt Post for reporting the problem.