remove trailing whitespaces
use guava to get stacktrace as string