updating requestHandler to call Java code properly
Swapping replace function searching for literal string for regex