java compiler throws null and substitute characters while piping.
Function to remove it.