strip newline from version