remove trailing .txt when getting the note