Convert string to hash if present (hack)