I would call strchr() if searching for a single character - more efficient and avoids the need to clone the string