String based Java non-solution

Used a static method that receives a string in order to most closely
mimick the syntax required by the challenge (all function calls are only two
characters off).