Remove superfluous substr() invocation