Improve get_similar

Get rid of \r's.