Rtrim input before checking if form is empty
Merge pull request #7426 from Razer6/rtrim_note_input

rtrim() input before checking if note form is empty