Fixed it so when there's no space it still works.