removes trailing whitespace from scala sample app code