You need to explicitly initialize your local variable:
StringBuilder normalised = null;
... or ...
StringBuilder normalised = new StringBuilder();
... before referencing it.
Some of the pathways in your code reference normalised
prior to its initialization:
normalised.append(...
Local variables are not automatically initialized as would, instance fields.