replace -> replaceAll on period parsing