Removed spaces and added them in Java-file