javascript – jQuery: search name without spacing

I’m a newbie to jQuery/JavaScript. During my learning process, I found a search filter code from W3schools by using jQuery. I have tried to used it in my code and it worked well. Now, I wonder how could I get the search result without spacing when I enter the names? For example, one of my data is
‘Jacky Chan’, and I wish that I can get the search result by just entering ‘jackychan”https://stackoverflow.com/”Jackyc”https://stackoverflow.com/”JackyChan”https://stackoverflow.com/”jackyc’. Thanks in advance.

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#myInput").on("keyup", function() {
var value = $(this).val().toLowerCase();
$("#myList li").filter(function() {
  $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
   });
 });
});
</script>
</head>
<body>

<input id="myInput" type="text" placeholder="Search..">
<br>

<ul id="myList">
  <li>Jacky Chan</li>
  <li>Lim Hai Yang</li>
  <li>Soul Wong</li>
</ul>

</body>
</html>