- `.substr()` is deprecated so we replace it with .slice() which works similarly but isn't deprecated Signed-off-by: Tobias Speicher <rootcommander@gmail.com>