get rid of leading/trailing spaces in notifications