Work

Fixed bug deleting trailing whitespace