bash substring needs quotes