#!/bin/bash
s=' word'
grep ^\\s <<< "$s"
grep -E '^\s' <<< "$s"