Updated slice to no longer check an extra unnecessary character