check if input exists and convert it to system url