Html Input Type File Javascript Substring Function In Java