fixed soundsense breaking bug, typo

because the last line of the xml did not have a trailing newline,
stripping the last character broke it.  Now fixed with a special case.
Also a typo fix.