ensure hash char is provided