Inserting filenames was not working for java snippets. Fixed by
supplying the "$1" argument instead of an empty String.
Added a trailing space to java snippets that will be followed by
a space.