Testing string containing \n for three numbers