fdo#68341 Remove space of java class when testing class

When user hit "Test class" it trims the string
User should test class name before going next step

Change-Id: Ic4aa6cb4b821f156cf0ec8c0c09a27db8bd6d51c
Reviewed-on: https://gerrit.libreoffice.org/9953
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>