removing whitespace from observer class